<div class="outer head">
	<form name="<{$form.name}>" id="<{$form.name}>" action="<{$form.action}>" method="<{$form.method}>" >
	   选择群组: 
	    <select name="group_id">
			<option value="0">--全部群组--</option>
			<option value="-1">回收站主题</option>
			<{foreachq item=item from=$groups_tree}>
			    <optgroup label="<{$item.name}>" />
			    <{if $item.tree}>
				    <{foreachq item=group key=key from=$item.tree}>
				    <option value="<{$key}>"><{$group}></option>
				    <{/foreach}>
			    <{/if}>
			<{/foreach}>
		</select>
		<{foreachq item=item from=$form.elements}>
		<{$item.caption}><{$item.body}>
		<{/foreach}>
	</form>
</div>
<br/>
<{$pagenav}>
<form name="frm" id="frm" action="action.topics.php" method="post" >
<table width="100%" class="outer" cellspacing="1">
	<tr class="head">
		<th width="2%"></th>	
		<th width="50%">标题</th>	
		<th width="8%">作者</th>			
		<th width="7%">点击</th>
		<th width="7%">回复</th>
		<th width="12%">发表时间</th>
		<th width="20%">最近更新</th>
	</tr>
	
	<{if $threads_list}>
	<{foreachq item=item from=$threads_list name="list"}>
		<tr class="<{cycle values='odd, even'}>">
			<td align="center"><input type="checkbox" name="tids[]" value="<{$item.tid}>" /></td>
			<td>
			<{if $item.threads_icon}><{$item.threads_icon}>&nbsp;<{/if}>
			<a href="<{$xoops_url}>/modules/groups/viewthread.php?tid=<{$item.tid}>"><{$item.threads_subject}></a>&nbsp;
			<{if $item.threads_attachments}><em>附</em><{/if}>
			<{if $item.threads_displaytop }><em>顶</em><{/if}>
			</td>
			<td><a href="<{$smarty.const._GROUPS_USERINFO_URL}><{$item.uid}>"><{$item.author}></a></td>
			<td align="center"><{$item.threads_views}></td>
			<td align="center"><{$item.threads_replies}></td>
			<td><{$item.threads_dateline}></td>
			<td align="right"><{$item.threads_lastdate}> <a href="<{$smarty.const._GROUPS_USERINFO_URL}><{$item.threads_lastuid}>"><{$item.threads_lastposter}></a></td>
		</tr>
	<{/foreach}>
	<{/if}>
	<tr>
		<td colspan="7" align="left">
		<input name='allbox' id='allbox' onclick='xoopsCheckAll("frm", "allbox");' type='checkbox' value='Check All' /> 全选 
		移动至:<select name="group_id">
				<option value="0">回收站</option>
				<{foreachq item=item from=$groups_tree}>
				    <optgroup label="<{$item.name}>" />
				    <{if $item.tree}>
    				    <{foreachq item=group key=key from=$item.tree}>
    				    <option value="<{$key}>"><{$group}></option>
    				    <{/foreach}>
				    <{/if}>
				<{/foreach}>
			</select>
			<input type="hidden" name="op" value="mvtopics" />
			<input type="submit" value="<{$smarty.const._SUBMIT}>" />
		</td>
	</tr>
</table>
</form>
<{$pagenav}>